<div class="single-trainertab">
    <?php
    $imgsrc = ($userDetails->photo <> "") ? getRequestbaseUrl() . getuploadFolderDir() . $imagePath . '/profile/thumb/' . $userDetails->photo : getWorkNoshopimage(SkillConfig::skill_class_trainertab);
    ?>  

    <img src="<?php echo $imgsrc; ?>" alt="<?php echo $userDetails->first_name;?>" class="img-responsive">
    <div class="trainertab-info">
        <div class="trainer-inner">Name: <span><?php echo $userDetails->first_name . '  ' . $userDetails->last_name; ?></span></div>
        <?php if (!empty($userDetails->age)) { ?><div class="trainer-inner">Experience: <span><?php echo $userDetails->age; ?> years</span></div><?php } ?>
        <div class="trainer-inner">Rating: <span> <?php echo (!empty($classTrainerRate)) ? $classTrainerRate . ' % ' : '0 % '; ?></span></div>
        <?php echo CHtml::link('See Full Profile', $this->createAbsoluteUrl('users/trainerProfile/', array('authKey' => $classmodel->auth_key))); ?>
    </div>
</div><!--single-reviewtab-->       
<h4>About</h4>
<p><?php echo $userDetails->about; ?></p>
<?php if (!empty($userDetails->experience)) { ?>
    <h4>Experience:</h4>
    <p><?php echo $userDetails->experience; ?></p>
<?php } ?>
<?php if (!empty($userDetails->other_info)) { ?>
    <h4>Other Information:</h4>
    <p><?php echo $userDetails->other_info; ?></p>
<?php } ?>



<?php if (!empty($userDetails->facebook) || $userType == 'backend') { ?>

    <h5>Facebook Link</h5>
    <p> <a href="<?php echo ($userType != 'backend') ? $userDetails->facebook : FACEBOOK_LINK; ?>" title="facebook link" target="_blank"><?php echo ($userType != 'backend') ? $userDetails->facebook : FACEBOOK_LINK_TITLE; ?></a></p>
<?php } ?>


<?php if (!empty($userDetails->twitter) || $userType == 'backend') { ?>
    <h5>Twitter Link</h5> <p><a href="<?php echo ($userType != 'backend') ? $userDetails->twitter : TWITTER_LINK; ?>" title="twitter link" target="_blank"><?php echo ($userType != 'backend') ? $userDetails->twitter : TWITTER_LINK_TITLE; ?></a></p>

<?php } ?>


<?php if (!empty($userDetails->linkedin) || $userType == 'backend') { ?>
    <h5>Linkedin Link</h5> <p><a href="<?php echo ($userType != 'backend') ? $userDetails->linkedin : LINKEDIN_LINK; ?>" title="linkedin link" target="_blank"><?php echo ($userType != 'backend') ? $userDetails->linkedin : LINKEDIN_LINK_TITLE; ?></a></p>
<?php } ?>

<?php if (!empty($userDetails->website_title)) { ?>
    <h5>Website Link</h5><p><a href="<?php echo $userDetails->website_link; ?>" title="<?php echo $userDetails->website_title; ?>" target="_blank"><?php echo $userDetails->website_title; ?></a></p>
<?php } ?>       
<?php if (!empty($userDetails->blog_title)) { ?>
    <h5>Blog Link</h5><p><a href="<?php echo $userDetails->blog_link; ?>" title="<?php echo $userDetails->blog_title; ?>" target="_blank"><?php echo $userDetails->blog_title; ?></a></p>
<?php } ?>

<?php if (!empty($userDetails->others)) { ?>
    <h5>Other Link</h5><p> <a href="<?php echo $userDetails->others_link; ?>" title="<?php echo $userDetails->others; ?>" target="_blank"><?php echo $userDetails->others; ?></a>
    </p><?php } ?>
